# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-websockify
_pkgname=websockify
pkgver=0.13.0
pkgrel=1
pkgdesc='WebSockets support for any application/server.'
arch=('any')
url='https://pypi.org/project/websockify/#files'
license=('LGPL3')
depends=('python' 'python-numpy')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('af04b58eab6907e7a32f33e67b3c2fc6d4c2ccc439221199673a73ce7e03547b927141202c610cf4ba6a4814892d650e5e73c11cb0197a595bf0910c9952f8f6')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" -O1 --skip-build
}

